package com.cci.kangdao.service;

import java.util.Map;

import com.cci.kangdao.dto.BaseResponse;
import org.springframework.scheduling.annotation.Async;
import org.springframework.web.servlet.ModelAndView;

public interface NoticeService {

	/**
	 * 绑定
	 * @param cId
	 * @param userName
	 * @return
	 */
	public ModelAndView bindClientId(Map<String, Object> map);
	
	/**
	 * 解绑
	 * @param userName
	 * @return
	 */
	public ModelAndView unbindClientId(Map<String, Object> map);
	
	/**
	 * 获取用户clientId
	 * @param userName
	 * @return
	 */
	public ModelAndView getClientId(Map<String, Object> map);

	/**
	 * 发送推送消息
	 * @param function 功能
	 * @param category 类别
	 * @param orderId 工单ID
	 * @param receiverId 接收人ID
	 * @param userName 接收人用户名
	 * @param title 标题
	 * @param content 内容
	 * @param transmissionContent 透传内容
	 * @param creatorId 创建人ID
	 */
	@Async
	void push(Integer function,Integer category,Long orderId,Long receiverId,String userName,String title,String content,String transmissionContent,Long creatorId);

	
	/**
	 * 发送推送消息
	 * @param function 功能
	 * @param category 类别
	 * @param orderId 工单ID
	 * @param receiverId 接收人ID
	 * @param userName 接收人用户名
	 * @param title 标题
	 * @param content 内容
	 * @param transmissionContent 透传内容
	 * @param creatorId 创建人ID
	 */
	@Async
	void pushUser(Integer function,Integer category,Long orderId,Long receiverId,String userName,String title,String content,String transmissionContent,Long creatorId);

	
	@Async
	void sendSMS(Integer function, Integer category, Long orderId, Long receiverId, String userPhone,String content, Long creatorId);

	ModelAndView openActivity(Map<String, Object> map);
}
